import { useReactive } from "ahooks";
import { useModel } from "umi";
import compress from "gql-compress";

const useCreateBrand = () => {
	const { graphqlFetch } = useModel("global");

	const state = useReactive({
		addBrandloading: false,
	});

	const createBrand = (value, callback) => {
		state.addBrandloading = true;
		let res = "a";
		res && callback && callback(res);
		state.addBrandloading = false;
	};

	return { createBrand };
};

let query = compress(``);

export default useCreateBrand;
